# chrome开发者工具介绍，分析得到一张图片url
import requests

url = 'https://img.ivsky.com/img/tupian/t/202005/11/pingguo_bijiben-001.jpg'
resp = requests.get(url)
# debug模式观察 resp.content和resp.text
content = resp.content

with open('./test.jpg', 'wb') as f:
    f.write(content)